package routers

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context/param"
)

func init() {

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysAuth"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysAuth"],
        beego.ControllerComments{
            Method: "Get",
            Router: `/auth`,
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysAuth"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysAuth"],
        beego.ControllerComments{
            Method: "Get2",
            Router: `/auth/role/:id`,
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"],
        beego.ControllerComments{
            Method: "Post",
            Router: `/role`,
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"],
        beego.ControllerComments{
            Method: "Get",
            Router: `/role`,
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"],
        beego.ControllerComments{
            Method: "Delete",
            Router: `/role/:id`,
            AllowHTTPMethods: []string{"delete"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysRole"],
        beego.ControllerComments{
            Method: "Put",
            Router: `/role/:id`,
            AllowHTTPMethods: []string{"put"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"],
        beego.ControllerComments{
            Method: "Post",
            Router: `/user`,
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"],
        beego.ControllerComments{
            Method: "Gets",
            Router: `/user`,
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"],
        beego.ControllerComments{
            Method: "Delete",
            Router: `/user/:id`,
            AllowHTTPMethods: []string{"delete"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"],
        beego.ControllerComments{
            Method: "Put",
            Router: `/user/:id`,
            AllowHTTPMethods: []string{"put"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:SysUsers"],
        beego.ControllerComments{
            Method: "RestPassword",
            Router: `/user/resetpsw/:id`,
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:User"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:User"],
        beego.ControllerComments{
            Method: "Post",
            Router: `/info`,
            AllowHTTPMethods: []string{"post"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

    beego.GlobalControllerRouter["myadmin/sys/syscontrollers:User"] = append(beego.GlobalControllerRouter["myadmin/sys/syscontrollers:User"],
        beego.ControllerComments{
            Method: "Get",
            Router: `/info`,
            AllowHTTPMethods: []string{"get"},
            MethodParams: param.Make(),
            Filters: nil,
            Params: nil})

}
